home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / asmutil / answr202.zip / ANSWER.DOC < prev    next >
Text File  |  1986-12-14  |  3KB  |  65 lines

  1.  
  2.             +     ANSWER v2.02         +
  3.             |                 |
  4.             |    By:  FRANK SCHWEIGER    |
  5.             |                 |
  6.             +       12/14/86         +
  7.  
  8. Note:  This version slightly modifies the original version 1.00 with a few
  9. minor additions.  The first was the addition of a proper carriage return &
  10. line feed after input.    This makes batch file execution visually cleaner.
  11. The second is the conversion of all input to uppercase.  This makes 
  12. branching on input comparison faster, eliminating the need to compare input 
  13. against both upper- and lower-case string constants.  This documentation is 
  14. a slight bastardization of the original (sorry, Frank).     Brad Berson
  15.  
  16. The syntax for using ANSWER is as follows:
  17. ANSWER [optional prompt]
  18.  
  19. ANSWER will display the optional prompt, and then accept input from the
  20. keyboard.  It will place the input in your CURRENT ENVIRONMENT AREA in a
  21. field named ANSWER.  If "ANSI.SYS" (or other ANSI driver) has been loaded,
  22. the optional prompt may contain any valid ANSI sequences to position the 
  23. cursor, change color, etc.  The user must have previously displayed some
  24. indication that keyboard input is expected or include the optional prompt
  25. to do so.  If the optional prompt is not present ANSWER will NOT DISPLAY
  26. ANYTHING that would inform the opertaor that input is expected.
  27.  
  28. Parameters in the ENVIRONMENT AREA may be accessed similarly to command
  29. line parameters.  See the following examples for clarification.
  30.  
  31. ANSWER Enter the full filespec for the source file:-
  32. COPY %ANSWER% junk.dst
  33.  
  34. ANSWER Enter the drive the source file is on (including :)-
  35. SET DRIVE=%ANSWER%
  36. ANSWER Enter the path the source file is on (including following \)-
  37. SET COPYPATH=%ANSWER%
  38. ANSWER Enter the source filename-
  39. COPY %DRIVE%%COPYPATH%%ANSWER% junk.dst
  40.  
  41. Note:  The second example uses 3 parameters in the ENVIRONMENT AREA.  If you
  42. have not expanded your environment area, you may run out of spcae.  ANSWER
  43. sets a return code which can be examined by the ERRORLEVEL option of the
  44. IF statement.  ERRORLEVEL will be 0 if ANSWER was successful, or 1 if there
  45. was insufficient room or the ENVIRONMENT AREA was corrupted.
  46.  
  47.      This program is provided "as is" without warranty of any
  48.      kind, either expressed or implied, including, but not
  49.      limited to the implied warranties of merchantability or
  50.      fitness for a particular purpose.    The entire risk as to the
  51.      results and performance of the program is assumed by the
  52.      user.  Should the program prove defective, the users assumes
  53.      the entire cost of all necessary servicing, repair or
  54.      correction.
  55.  
  56.      This program is donated to the PUBLIC DOMAIN, and may be freely
  57.      copied without any restrictions.
  58.  
  59.      Comments or suggestions may be forwarded to:
  60.  
  61.      Frank Schweiger           Brad Berson
  62.      10083 Heytesbury Ln.       9820 62 Dr. 12-E
  63.      Sandy, Ut.  84092           Rego Pk. NY    11374
  64.  
  65.